package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2022-10-11
 */
@Getter
@Setter
@Accessors(chain = true)
public class Meal extends Model<Meal> {

  private static final long serialVersionUID = 1L;

  /**
  * 餐点id
  */
  @ApiModelProperty(value = "餐点id")
  @TableId(value = "meal_id", type = IdType.ASSIGN_ID)
  protected Integer mealId;

  /**
  * 餐点类型id
  */
  @ApiModelProperty(value = "餐点类型id")
  private Integer mealTypeId;

  /**
  * 餐点名
  */
  @ApiModelProperty(value = "餐点名称")
  protected String mealName;

  /**
   * 餐点累积销量
   */
  @ApiModelProperty(value = "餐点累积销量")
  protected Integer mealSales;

  /**
   * 餐点介绍信息
   */
  @ApiModelProperty(value = "餐点介绍信息")
  protected String mealInfo;

  /**
  * 餐点当前的价格
  */
  @ApiModelProperty(value = "餐点当前的价格")
  protected Integer mealPrice;

  /**
  * 餐点的库存信息
  */
  @ApiModelProperty(value = "餐点的库存信息")
  protected Integer mealInventory;


  @Override
  public Serializable pkVal() {
        return this.mealId;
    }

  @Override
  public String toString() {
    return "Meal{" +
            "mealId=" + mealId +
            ", mealTypeId=" + mealTypeId +
            ", mealName='" + mealName + '\'' +
            ", mealSales=" + mealSales +
            ", mealInfo='" + mealInfo + '\'' +
            ", mealPrice=" + mealPrice +
            ", mealInventory=" + mealInventory +
            '}';
  }
}
